﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cz.muni.fi.pb138.IO.Implementation.ODF
{
    class IOFactoryODF : IIOFactory
    {
        public IIODataSource DataSource { get; set; }

        public string FileType { get { return "ODS"; } }

        public IList<Media> importData(string fileName)
        {
            this.DataSource = new IODataSourceODF();
            this.DataSource.FileName = fileName;
            return this.DataSource.readMedia();
        }

        public void exportData(IList<Media> list, string fileName)
        {
            this.DataSource = new IODataSourceODF();
            this.DataSource.FileName = fileName;
            this.DataSource.storeMedia(list);
        }

    }

}
